package com.gxuwz.mapper;

import com.gxuwz.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


@Mapper
public interface UserMapper {
    /*查询管理员个人信息*/
    @Select("select * from sys_user where userid=#{userid}")
    User selectUserByUserID(String userid);
    /*修改管理员个人信息*/
    @Update("UPDATE sys_user SET fullname = #{fullname}, password = #{password}, telephone = #{telephone} WHERE userid = #{userid}")
    int updateUser(User user);

}
